package com.longrise.bymodule.page.customermanage;

import android.webkit.WebView;

import com.longrise.bymodule.utils.BYUtil;
import com.longrise.common.base.web.BaseWebActivity;
import com.longrise.common.base.web.BaseWebClient;
import com.longrise.common.utils.PrintLog;

/**
 * Created by Administrator on 2017/11/29.
 * 客户管理的WebClient
 */

class ClientManagerWebClient extends BaseWebClient {

    private String title;

    public ClientManagerWebClient(BaseWebActivity activity) {
        super(activity);
    }

    @Override
    public void onPageFinished(WebView view, String url) {
        super.onPageFinished(view, url);
        try {
            title = view.getTitle();
            PrintLog.e("ClientManageActivity2", "title=:"+title);
            boolean isVisible = BYUtil.isVisiableShare(title);
            ((ClientManageActivity2)mActivity).setImageVisible(isVisible,title);
            PrintLog.e("ClientManageActivity2", "isVisible=:"+isVisible);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
